package com.example.j1tth4.chatroom;

import android.app.Activity;
import android.widget.TextView;

/**
 * Created by j1tth4 on 7/13/14 AD.
 */
public abstract class MainActivity extends Activity {

    public static final String IP = "";
    public static final int PORT = 6000;

    protected Thread mConnThread;
    protected ISocketConnection mSockConn;

    protected class UpdateUiThread implements Runnable{

        private String mMesg;
        private TextView mTvMesg;

        public UpdateUiThread(TextView tvMesg, String mesg){
            mTvMesg = tvMesg;
            mMesg = mesg;
        }

        @Override
        public void run() {
            mTvMesg.setText(mMesg);
        }
    }
}
